@model GoogleMapsMVC.Models.GoogleMarker

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset class="form-horizontal">
        <legend>GoogleMarker</legend>

        @Html.HiddenFor(model => model.MarkerID)

        <div class="control-group">
            @Html.LabelFor(model => model.SiteName, new { @class = "control-label" })
			<div class="controls">
				@Html.EditorFor(model => model.SiteName)
				@Html.ValidationMessageFor(model => model.SiteName, null, new { @class = "help-inline" })
			</div>
		</div>

        <div class="control-group">
            @Html.LabelFor(model => model.Latitude, new { @class = "control-label" })
			<div class="controls">
				@Html.EditorFor(model => model.Latitude)
				@Html.ValidationMessageFor(model => model.Latitude, null, new { @class = "help-inline" })
			</div>
		</div>

        <div class="control-group">
            @Html.LabelFor(model => model.Longitude, new { @class = "control-label" })
			<div class="controls">
				@Html.EditorFor(model => model.Longitude)
				@Html.ValidationMessageFor(model => model.Longitude, null, new { @class = "help-inline" })
			</div>
		</div>

        <div class="control-group">
            @Html.LabelFor(model => model.InfoWindow, new { @class = "control-label" })
			<div class="controls">
				@Html.EditorFor(model => model.InfoWindow)
				@Html.ValidationMessageFor(model => model.InfoWindow, null, new { @class = "help-inline" })
			</div>
		</div>

        <div class="form-actions no-color">
            <input type="submit" value="Save" class="btn" />
        </div>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

